<template>
  <div>
   <h1>{{ change }}</h1>
   <br>
   <button @click="reverse">翻转世界</button>
  </div>
</template>

<script>
export default {
 data() {
  return {
   change: 'Hello,World'
  }
 },
 methods:{
  reverse() {
   this.change = this.change.split('').reverse().join('')
  }
 }
}
</script>

<style>

</style>